<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">{-
%
% (c) The University of Glasgow 2006
% (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
%
-}</span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="hs-comment">-- | FastStringEnv: FastString environments</span><span>
</span><span id="line-9"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Data.FastString.Env</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-10"></span><span>        </span><span class="annot"><span class="hs-comment">-- * FastString environments (maps)</span></span><span>
</span><span id="line-11"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier">FastStringEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-12"></span><span>
</span><span id="line-13"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Manipulating these environments</span></span><span>
</span><span id="line-14"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#mkFsEnv"><span class="hs-identifier">mkFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-15"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#emptyFsEnv"><span class="hs-identifier">emptyFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#unitFsEnv"><span class="hs-identifier">unitFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-16"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv_C"><span class="hs-identifier">extendFsEnv_C</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv_Acc"><span class="hs-identifier">extendFsEnv_Acc</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv"><span class="hs-identifier">extendFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-17"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnvList"><span class="hs-identifier">extendFsEnvList</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnvList_C"><span class="hs-identifier">extendFsEnvList_C</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-18"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#filterFsEnv"><span class="hs-identifier">filterFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-19"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#plusFsEnv"><span class="hs-identifier">plusFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#plusFsEnv_C"><span class="hs-identifier">plusFsEnv_C</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#alterFsEnv"><span class="hs-identifier">alterFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-20"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupFsEnv"><span class="hs-identifier">lookupFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupFsEnv_NF"><span class="hs-identifier">lookupFsEnv_NF</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#delFromFsEnv"><span class="hs-identifier">delFromFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#delListFromFsEnv"><span class="hs-identifier">delListFromFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-21"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#elemFsEnv"><span class="hs-identifier">elemFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#mapFsEnv"><span class="hs-identifier">mapFsEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span>        </span><span class="annot"><span class="hs-comment">-- * Deterministic FastString environments (maps)</span></span><span>
</span><span id="line-24"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#DFastStringEnv"><span class="hs-identifier">DFastStringEnv</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span>        </span><span class="annot"><span class="hs-comment">-- ** Manipulating these environments</span></span><span>
</span><span id="line-27"></span><span>        </span><span class="annot"><a href="GHC.Data.FastString.Env.html#mkDFsEnv"><span class="hs-identifier">mkDFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#emptyDFsEnv"><span class="hs-identifier">emptyDFsEnv</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#dFsEnvElts"><span class="hs-identifier">dFsEnvElts</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupDFsEnv"><span class="hs-identifier">lookupDFsEnv</span></a></span><span>
</span><span id="line-28"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-31"></span><span>
</span><span id="line-32"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.FM.html"><span class="hs-identifier">GHC.Types.Unique.FM</span></a></span><span>
</span><span id="line-33"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.DFM.html"><span class="hs-identifier">GHC.Types.Unique.DFM</span></a></span><span>
</span><span id="line-34"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.Maybe.html"><span class="hs-identifier">GHC.Data.Maybe</span></a></span><span>
</span><span id="line-35"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html"><span class="hs-identifier">GHC.Data.FastString</span></a></span><span>
</span><span id="line-36"></span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span class="hs-comment">-- | A non-deterministic set of FastStrings.</span><span>
</span><span id="line-39"></span><span class="hs-comment">-- See Note [Deterministic UniqFM] in &quot;GHC.Types.Unique.DFM&quot; for explanation why it's not</span><span>
</span><span id="line-40"></span><span class="hs-comment">-- deterministic and why it matters. Use DFastStringEnv if the set eventually</span><span>
</span><span id="line-41"></span><span class="hs-comment">-- gets converted into a list or folded over in a way where the order</span><span>
</span><span id="line-42"></span><span class="hs-comment">-- changes the generated code.</span><span>
</span><span id="line-43"></span><span class="hs-keyword">type</span><span> </span><span id="FastStringEnv"><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-var">FastStringEnv</span></a></span></span><span> </span><span id="local-6989586621680805320"><span class="annot"><a href="#local-6989586621680805320"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="GHC.Types.Unique.FM.html#UniqFM"><span class="hs-identifier hs-type">UniqFM</span></a></span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805320"><span class="hs-identifier hs-type">a</span></a></span><span>  </span><span class="hs-comment">-- Domain is FastString</span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span id="local-6989586621680805442"><span class="annot"><a href="GHC.Data.FastString.Env.html#emptyFsEnv"><span class="hs-identifier hs-type">emptyFsEnv</span></a></span><span>         </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805442"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-46"></span><span id="local-6989586621680805414"><span class="annot"><a href="GHC.Data.FastString.Env.html#mkFsEnv"><span class="hs-identifier hs-type">mkFsEnv</span></a></span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">,</span><span class="annot"><a href="#local-6989586621680805414"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805414"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-47"></span><span id="local-6989586621680805418"><span class="annot"><a href="GHC.Data.FastString.Env.html#alterFsEnv"><span class="hs-identifier hs-type">alterFsEnv</span></a></span><span>         </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805418"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805418"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805418"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805418"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-48"></span><span id="local-6989586621680805398"><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv_C"><span class="hs-identifier hs-type">extendFsEnv_C</span></a></span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805398"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805398"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805398"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805398"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805398"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805398"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-49"></span><span id="local-6989586621680805386"><span id="local-6989586621680805387"><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv_Acc"><span class="hs-identifier hs-type">extendFsEnv_Acc</span></a></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805387"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805386"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805386"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805387"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805386"><span class="hs-identifier hs-type">b</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805386"><span class="hs-identifier hs-type">b</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805387"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805386"><span class="hs-identifier hs-type">b</span></a></span></span></span><span>
</span><span id="line-50"></span><span id="local-6989586621680805430"><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnv"><span class="hs-identifier hs-type">extendFsEnv</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805430"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805430"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805430"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-51"></span><span id="local-6989586621680805406"><span class="annot"><a href="GHC.Data.FastString.Env.html#plusFsEnv"><span class="hs-identifier hs-type">plusFsEnv</span></a></span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805406"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805406"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805406"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-52"></span><span id="local-6989586621680805402"><span class="annot"><a href="GHC.Data.FastString.Env.html#plusFsEnv_C"><span class="hs-identifier hs-type">plusFsEnv_C</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805402"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805402"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805402"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805402"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805402"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805402"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-53"></span><span id="local-6989586621680805426"><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnvList"><span class="hs-identifier hs-type">extendFsEnvList</span></a></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805426"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">,</span><span class="annot"><a href="#local-6989586621680805426"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805426"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-54"></span><span id="local-6989586621680805380"><span class="annot"><a href="GHC.Data.FastString.Env.html#extendFsEnvList_C"><span class="hs-identifier hs-type">extendFsEnvList_C</span></a></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805380"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805380"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-glyph">-&gt;</span><span class="annot"><a href="#local-6989586621680805380"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805380"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">,</span><span class="annot"><a href="#local-6989586621680805380"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805380"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-55"></span><span id="local-6989586621680805376"><span class="annot"><a href="GHC.Data.FastString.Env.html#delFromFsEnv"><span class="hs-identifier hs-type">delFromFsEnv</span></a></span><span>       </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805376"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805376"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-56"></span><span id="local-6989586621680805372"><span class="annot"><a href="GHC.Data.FastString.Env.html#delListFromFsEnv"><span class="hs-identifier hs-type">delListFromFsEnv</span></a></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805372"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805372"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-57"></span><span id="local-6989586621680805410"><span class="annot"><a href="GHC.Data.FastString.Env.html#elemFsEnv"><span class="hs-identifier hs-type">elemFsEnv</span></a></span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805410"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span></span><span>
</span><span id="line-58"></span><span id="local-6989586621680805435"><span class="annot"><a href="GHC.Data.FastString.Env.html#unitFsEnv"><span class="hs-identifier hs-type">unitFsEnv</span></a></span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805435"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805435"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-59"></span><span id="local-6989586621680805422"><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupFsEnv"><span class="hs-identifier hs-type">lookupFsEnv</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805422"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805422"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-60"></span><span id="local-6989586621680805364"><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupFsEnv_NF"><span class="hs-identifier hs-type">lookupFsEnv_NF</span></a></span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805364"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805364"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-61"></span><span id="local-6989586621680805368"><span class="annot"><a href="GHC.Data.FastString.Env.html#filterFsEnv"><span class="hs-identifier hs-type">filterFsEnv</span></a></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805368"><span class="hs-identifier hs-type">elt</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805368"><span class="hs-identifier hs-type">elt</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805368"><span class="hs-identifier hs-type">elt</span></a></span></span><span>
</span><span id="line-62"></span><span id="local-6989586621680805393"><span id="local-6989586621680805394"><span class="annot"><a href="GHC.Data.FastString.Env.html#mapFsEnv"><span class="hs-identifier hs-type">mapFsEnv</span></a></span><span>           </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="#local-6989586621680805394"><span class="hs-identifier hs-type">elt1</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="#local-6989586621680805393"><span class="hs-identifier hs-type">elt2</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805394"><span class="hs-identifier hs-type">elt1</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#FastStringEnv"><span class="hs-identifier hs-type">FastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805393"><span class="hs-identifier hs-type">elt2</span></a></span></span></span><span>
</span><span id="line-63"></span><span>
</span><span id="line-64"></span><span id="emptyFsEnv"><span class="annot"><span class="annottext">emptyFsEnv :: forall a. FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#emptyFsEnv"><span class="hs-identifier hs-var hs-var">emptyFsEnv</span></a></span></span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqFM FastString a
forall key elt. UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#emptyUFM"><span class="hs-identifier hs-var">emptyUFM</span></a></span><span>
</span><span id="line-65"></span><span id="unitFsEnv"><span class="annot"><span class="annottext">unitFsEnv :: forall a. FastString -&gt; a -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#unitFsEnv"><span class="hs-identifier hs-var hs-var">unitFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805316"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805316"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805315"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805315"><span class="hs-identifier hs-var">y</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; a -&gt; UniqFM FastString a
forall key elt. Uniquable key =&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#unitUFM"><span class="hs-identifier hs-var">unitUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805316"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805315"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-66"></span><span id="extendFsEnv"><span class="annot"><span class="annottext">extendFsEnv :: forall a. FastStringEnv a -&gt; FastString -&gt; a -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#extendFsEnv"><span class="hs-identifier hs-var hs-var">extendFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805312"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805312"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805311"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805311"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680805310"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805310"><span class="hs-identifier hs-var">z</span></a></span></span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastStringEnv a -&gt; FastString -&gt; a -&gt; FastStringEnv a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM"><span class="hs-identifier hs-var">addToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805312"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805311"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805310"><span class="hs-identifier hs-var">z</span></a></span><span>
</span><span id="line-67"></span><span id="extendFsEnvList"><span class="annot"><span class="annottext">extendFsEnvList :: forall a. FastStringEnv a -&gt; [(FastString, a)] -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#extendFsEnvList"><span class="hs-identifier hs-var hs-var">extendFsEnvList</span></a></span></span><span> </span><span id="local-6989586621680805307"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805307"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805306"><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805306"><span class="hs-identifier hs-var">l</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastStringEnv a -&gt; [(FastString, a)] -&gt; FastStringEnv a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; [(key, elt)] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addListToUFM"><span class="hs-identifier hs-var">addListToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805307"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805306"><span class="hs-identifier hs-var">l</span></a></span><span>
</span><span id="line-68"></span><span id="lookupFsEnv"><span class="annot"><span class="annottext">lookupFsEnv :: forall a. FastStringEnv a -&gt; FastString -&gt; Maybe a
</span><a href="GHC.Data.FastString.Env.html#lookupFsEnv"><span class="hs-identifier hs-var hs-var">lookupFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805303"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805303"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805302"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805302"><span class="hs-identifier hs-var">y</span></a></span></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastStringEnv a -&gt; FastString -&gt; Maybe a
forall key elt. Uniquable key =&gt; UniqFM key elt -&gt; key -&gt; Maybe elt
</span><a href="GHC.Types.Unique.FM.html#lookupUFM"><span class="hs-identifier hs-var">lookupUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805303"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805302"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-69"></span><span id="alterFsEnv"><span class="annot"><span class="annottext">alterFsEnv :: forall a.
(Maybe a -&gt; Maybe a)
-&gt; FastStringEnv a -&gt; FastString -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#alterFsEnv"><span class="hs-identifier hs-var hs-var">alterFsEnv</span></a></span></span><span>                </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Maybe a -&gt; Maybe a)
-&gt; UniqFM FastString a -&gt; FastString -&gt; UniqFM FastString a
forall key elt.
Uniquable key =&gt;
(Maybe elt -&gt; Maybe elt) -&gt; UniqFM key elt -&gt; key -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#alterUFM"><span class="hs-identifier hs-var">alterUFM</span></a></span><span>
</span><span id="line-70"></span><span id="mkFsEnv"><span class="annot"><span class="annottext">mkFsEnv :: forall a. [(FastString, a)] -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#mkFsEnv"><span class="hs-identifier hs-var hs-var">mkFsEnv</span></a></span></span><span>     </span><span id="local-6989586621680805297"><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805297"><span class="hs-identifier hs-var">l</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[(FastString, a)] -&gt; UniqFM FastString a
forall key elt. Uniquable key =&gt; [(key, elt)] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#listToUFM"><span class="hs-identifier hs-var">listToUFM</span></a></span><span> </span><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805297"><span class="hs-identifier hs-var">l</span></a></span><span>
</span><span id="line-71"></span><span id="elemFsEnv"><span class="annot"><span class="annottext">elemFsEnv :: forall a. FastString -&gt; FastStringEnv a -&gt; Bool
</span><a href="GHC.Data.FastString.Env.html#elemFsEnv"><span class="hs-identifier hs-var hs-var">elemFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805294"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805294"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805293"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805293"><span class="hs-identifier hs-var">y</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastString -&gt; FastStringEnv a -&gt; Bool
forall key elt. Uniquable key =&gt; key -&gt; UniqFM key elt -&gt; Bool
</span><a href="GHC.Types.Unique.FM.html#elemUFM"><span class="hs-identifier hs-var">elemUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805294"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805293"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-72"></span><span id="plusFsEnv"><span class="annot"><span class="annottext">plusFsEnv :: forall a. FastStringEnv a -&gt; FastStringEnv a -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#plusFsEnv"><span class="hs-identifier hs-var hs-var">plusFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805291"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805291"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805290"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805290"><span class="hs-identifier hs-var">y</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastStringEnv a -&gt; FastStringEnv a -&gt; FastStringEnv a
forall key elt. UniqFM key elt -&gt; UniqFM key elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#plusUFM"><span class="hs-identifier hs-var">plusUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805291"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805290"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-73"></span><span id="plusFsEnv_C"><span class="annot"><span class="annottext">plusFsEnv_C :: forall a.
(a -&gt; a -&gt; a)
-&gt; FastStringEnv a -&gt; FastStringEnv a -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#plusFsEnv_C"><span class="hs-identifier hs-var hs-var">plusFsEnv_C</span></a></span></span><span> </span><span id="local-6989586621680805288"><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680805288"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621680805287"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805287"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805286"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805286"><span class="hs-identifier hs-var">y</span></a></span></span><span>         </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; a -&gt; a)
-&gt; FastStringEnv a -&gt; FastStringEnv a -&gt; FastStringEnv a
forall elt key.
(elt -&gt; elt -&gt; elt)
-&gt; UniqFM key elt -&gt; UniqFM key elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#plusUFM_C"><span class="hs-identifier hs-var">plusUFM_C</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680805288"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805287"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805286"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-74"></span><span id="extendFsEnv_C"><span class="annot"><span class="annottext">extendFsEnv_C :: forall a.
(a -&gt; a -&gt; a)
-&gt; FastStringEnv a -&gt; FastString -&gt; a -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#extendFsEnv_C"><span class="hs-identifier hs-var hs-var">extendFsEnv_C</span></a></span></span><span> </span><span id="local-6989586621680805283"><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680805283"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621680805282"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805282"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805281"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805281"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680805280"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805280"><span class="hs-identifier hs-var">z</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; a -&gt; a)
-&gt; FastStringEnv a -&gt; FastString -&gt; a -&gt; FastStringEnv a
forall key elt.
Uniquable key =&gt;
(elt -&gt; elt -&gt; elt)
-&gt; UniqFM key elt -&gt; key -&gt; elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addToUFM_C"><span class="hs-identifier hs-var">addToUFM_C</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680805283"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805282"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805281"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805280"><span class="hs-identifier hs-var">z</span></a></span><span>
</span><span id="line-75"></span><span id="mapFsEnv"><span class="annot"><span class="annottext">mapFsEnv :: forall elt1 elt2.
(elt1 -&gt; elt2) -&gt; FastStringEnv elt1 -&gt; FastStringEnv elt2
</span><a href="GHC.Data.FastString.Env.html#mapFsEnv"><span class="hs-identifier hs-var hs-var">mapFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805278"><span class="annot"><span class="annottext">elt1 -&gt; elt2
</span><a href="#local-6989586621680805278"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span id="local-6989586621680805277"><span class="annot"><span class="annottext">FastStringEnv elt1
</span><a href="#local-6989586621680805277"><span class="hs-identifier hs-var">x</span></a></span></span><span>              </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(elt1 -&gt; elt2) -&gt; FastStringEnv elt1 -&gt; UniqFM FastString elt2
forall elt1 elt2 key.
(elt1 -&gt; elt2) -&gt; UniqFM key elt1 -&gt; UniqFM key elt2
</span><a href="GHC.Types.Unique.FM.html#mapUFM"><span class="hs-identifier hs-var">mapUFM</span></a></span><span> </span><span class="annot"><span class="annottext">elt1 -&gt; elt2
</span><a href="#local-6989586621680805278"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv elt1
</span><a href="#local-6989586621680805277"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-76"></span><span id="extendFsEnv_Acc"><span class="annot"><span class="annottext">extendFsEnv_Acc :: forall a b.
(a -&gt; b -&gt; b)
-&gt; (a -&gt; b)
-&gt; FastStringEnv b
-&gt; FastString
-&gt; a
-&gt; FastStringEnv b
</span><a href="GHC.Data.FastString.Env.html#extendFsEnv_Acc"><span class="hs-identifier hs-var hs-var">extendFsEnv_Acc</span></a></span></span><span> </span><span id="local-6989586621680805274"><span class="annot"><span class="annottext">a -&gt; b -&gt; b
</span><a href="#local-6989586621680805274"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805273"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621680805273"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680805272"><span class="annot"><span class="annottext">FastStringEnv b
</span><a href="#local-6989586621680805272"><span class="hs-identifier hs-var">z</span></a></span></span><span> </span><span id="local-6989586621680805271"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805271"><span class="hs-identifier hs-var">a</span></a></span></span><span> </span><span id="local-6989586621680805270"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805270"><span class="hs-identifier hs-var">b</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; b -&gt; b)
-&gt; (a -&gt; b)
-&gt; FastStringEnv b
-&gt; FastString
-&gt; a
-&gt; FastStringEnv b
forall key elt elts.
Uniquable key =&gt;
(elt -&gt; elts -&gt; elts)
-&gt; (elt -&gt; elts)
-&gt; UniqFM key elts
-&gt; key
-&gt; elt
-&gt; UniqFM key elts
</span><a href="GHC.Types.Unique.FM.html#addToUFM_Acc"><span class="hs-identifier hs-var">addToUFM_Acc</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b -&gt; b
</span><a href="#local-6989586621680805274"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621680805273"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv b
</span><a href="#local-6989586621680805272"><span class="hs-identifier hs-var">z</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805271"><span class="hs-identifier hs-var">a</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621680805270"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-77"></span><span id="extendFsEnvList_C"><span class="annot"><span class="annottext">extendFsEnvList_C :: forall a.
(a -&gt; a -&gt; a)
-&gt; FastStringEnv a -&gt; [(FastString, a)] -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#extendFsEnvList_C"><span class="hs-identifier hs-var hs-var">extendFsEnvList_C</span></a></span></span><span> </span><span id="local-6989586621680805267"><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680805267"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805266"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805266"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span id="local-6989586621680805265"><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805265"><span class="hs-identifier hs-var">z</span></a></span></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(a -&gt; a -&gt; a)
-&gt; FastStringEnv a -&gt; [(FastString, a)] -&gt; FastStringEnv a
forall key elt.
Uniquable key =&gt;
(elt -&gt; elt -&gt; elt)
-&gt; UniqFM key elt -&gt; [(key, elt)] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#addListToUFM_C"><span class="hs-identifier hs-var">addListToUFM_C</span></a></span><span> </span><span class="annot"><span class="annottext">a -&gt; a -&gt; a
</span><a href="#local-6989586621680805267"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805266"><span class="hs-identifier hs-var">y</span></a></span><span> </span><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805265"><span class="hs-identifier hs-var">z</span></a></span><span>
</span><span id="line-78"></span><span id="delFromFsEnv"><span class="annot"><span class="annottext">delFromFsEnv :: forall a. FastStringEnv a -&gt; FastString -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#delFromFsEnv"><span class="hs-identifier hs-var hs-var">delFromFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805262"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805262"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805261"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805261"><span class="hs-identifier hs-var">y</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastStringEnv a -&gt; FastString -&gt; FastStringEnv a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; key -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#delFromUFM"><span class="hs-identifier hs-var">delFromUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805262"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805261"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-79"></span><span id="delListFromFsEnv"><span class="annot"><span class="annottext">delListFromFsEnv :: forall a. FastStringEnv a -&gt; [FastString] -&gt; FastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#delListFromFsEnv"><span class="hs-identifier hs-var hs-var">delListFromFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805258"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805258"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805257"><span class="annot"><span class="annottext">[FastString]
</span><a href="#local-6989586621680805257"><span class="hs-identifier hs-var">y</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FastStringEnv a -&gt; [FastString] -&gt; FastStringEnv a
forall key elt.
Uniquable key =&gt;
UniqFM key elt -&gt; [key] -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#delListFromUFM"><span class="hs-identifier hs-var">delListFromUFM</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805258"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">[FastString]
</span><a href="#local-6989586621680805257"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-80"></span><span id="filterFsEnv"><span class="annot"><span class="annottext">filterFsEnv :: forall elt. (elt -&gt; Bool) -&gt; FastStringEnv elt -&gt; FastStringEnv elt
</span><a href="GHC.Data.FastString.Env.html#filterFsEnv"><span class="hs-identifier hs-var hs-var">filterFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805255"><span class="annot"><span class="annottext">elt -&gt; Bool
</span><a href="#local-6989586621680805255"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621680805254"><span class="annot"><span class="annottext">FastStringEnv elt
</span><a href="#local-6989586621680805254"><span class="hs-identifier hs-var">y</span></a></span></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(elt -&gt; Bool) -&gt; FastStringEnv elt -&gt; FastStringEnv elt
forall elt key. (elt -&gt; Bool) -&gt; UniqFM key elt -&gt; UniqFM key elt
</span><a href="GHC.Types.Unique.FM.html#filterUFM"><span class="hs-identifier hs-var">filterUFM</span></a></span><span> </span><span class="annot"><span class="annottext">elt -&gt; Bool
</span><a href="#local-6989586621680805255"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv elt
</span><a href="#local-6989586621680805254"><span class="hs-identifier hs-var">y</span></a></span><span>
</span><span id="line-81"></span><span>
</span><span id="line-82"></span><span id="lookupFsEnv_NF"><span class="annot"><span class="annottext">lookupFsEnv_NF :: forall a. FastStringEnv a -&gt; FastString -&gt; a
</span><a href="GHC.Data.FastString.Env.html#lookupFsEnv_NF"><span class="hs-identifier hs-var hs-var">lookupFsEnv_NF</span></a></span></span><span> </span><span id="local-6989586621680805250"><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805250"><span class="hs-identifier hs-var">env</span></a></span></span><span> </span><span id="local-6989586621680805249"><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805249"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Maybe a -&gt; a
forall a. HasCallStack =&gt; String -&gt; Maybe a -&gt; a
</span><a href="GHC.Data.Maybe.html#expectJust"><span class="hs-identifier hs-var">expectJust</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;lookupFsEnv_NF&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastStringEnv a -&gt; FastString -&gt; Maybe a
forall a. FastStringEnv a -&gt; FastString -&gt; Maybe a
</span><a href="GHC.Data.FastString.Env.html#lookupFsEnv"><span class="hs-identifier hs-var">lookupFsEnv</span></a></span><span> </span><span class="annot"><span class="annottext">FastStringEnv a
</span><a href="#local-6989586621680805250"><span class="hs-identifier hs-var">env</span></a></span><span> </span><span class="annot"><span class="annottext">FastString
</span><a href="#local-6989586621680805249"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-83"></span><span>
</span><span id="line-84"></span><span class="hs-comment">-- Deterministic FastStringEnv</span><span>
</span><span id="line-85"></span><span class="hs-comment">-- See Note [Deterministic UniqFM] in GHC.Types.Unique.DFM for explanation why we need</span><span>
</span><span id="line-86"></span><span class="hs-comment">-- DFastStringEnv.</span><span>
</span><span id="line-87"></span><span>
</span><span id="line-88"></span><span class="hs-keyword">type</span><span> </span><span id="DFastStringEnv"><span class="annot"><a href="GHC.Data.FastString.Env.html#DFastStringEnv"><span class="hs-identifier hs-var">DFastStringEnv</span></a></span></span><span> </span><span id="local-6989586621680805247"><span class="annot"><a href="#local-6989586621680805247"><span class="hs-identifier hs-type">a</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="GHC.Types.Unique.DFM.html#UniqDFM"><span class="hs-identifier hs-type">UniqDFM</span></a></span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805247"><span class="hs-identifier hs-type">a</span></a></span><span>  </span><span class="hs-comment">-- Domain is FastString</span><span>
</span><span id="line-89"></span><span>
</span><span id="line-90"></span><span id="local-6989586621680805360"><span class="annot"><a href="GHC.Data.FastString.Env.html#emptyDFsEnv"><span class="hs-identifier hs-type">emptyDFsEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#DFastStringEnv"><span class="hs-identifier hs-type">DFastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805360"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-91"></span><span id="emptyDFsEnv"><span class="annot"><span class="annottext">emptyDFsEnv :: forall a. DFastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#emptyDFsEnv"><span class="hs-identifier hs-var hs-var">emptyDFsEnv</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqDFM FastString a
forall key elt. UniqDFM key elt
</span><a href="GHC.Types.Unique.DFM.html#emptyUDFM"><span class="hs-identifier hs-var">emptyUDFM</span></a></span><span>
</span><span id="line-92"></span><span>
</span><span id="line-93"></span><span id="local-6989586621680805354"><span class="annot"><a href="GHC.Data.FastString.Env.html#dFsEnvElts"><span class="hs-identifier hs-type">dFsEnvElts</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#DFastStringEnv"><span class="hs-identifier hs-type">DFastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805354"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="#local-6989586621680805354"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">]</span></span><span>
</span><span id="line-94"></span><span id="dFsEnvElts"><span class="annot"><span class="annottext">dFsEnvElts :: forall a. DFastStringEnv a -&gt; [a]
</span><a href="GHC.Data.FastString.Env.html#dFsEnvElts"><span class="hs-identifier hs-var hs-var">dFsEnvElts</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqDFM FastString a -&gt; [a]
forall key elt. UniqDFM key elt -&gt; [elt]
</span><a href="GHC.Types.Unique.DFM.html#eltsUDFM"><span class="hs-identifier hs-var">eltsUDFM</span></a></span><span>
</span><span id="line-95"></span><span>
</span><span id="line-96"></span><span id="local-6989586621680805350"><span class="annot"><a href="GHC.Data.FastString.Env.html#mkDFsEnv"><span class="hs-identifier hs-type">mkDFsEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span class="hs-special">,</span><span class="annot"><a href="#local-6989586621680805350"><span class="hs-identifier hs-type">a</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#DFastStringEnv"><span class="hs-identifier hs-type">DFastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805350"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-97"></span><span id="mkDFsEnv"><span class="annot"><span class="annottext">mkDFsEnv :: forall a. [(FastString, a)] -&gt; DFastStringEnv a
</span><a href="GHC.Data.FastString.Env.html#mkDFsEnv"><span class="hs-identifier hs-var hs-var">mkDFsEnv</span></a></span></span><span> </span><span id="local-6989586621680805243"><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805243"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[(FastString, a)] -&gt; UniqDFM FastString a
forall key elt. Uniquable key =&gt; [(key, elt)] -&gt; UniqDFM key elt
</span><a href="GHC.Types.Unique.DFM.html#listToUDFM"><span class="hs-identifier hs-var">listToUDFM</span></a></span><span> </span><span class="annot"><span class="annottext">[(FastString, a)]
</span><a href="#local-6989586621680805243"><span class="hs-identifier hs-var">l</span></a></span><span>
</span><span id="line-98"></span><span>
</span><span id="line-99"></span><span id="local-6989586621680805346"><span class="annot"><a href="GHC.Data.FastString.Env.html#lookupDFsEnv"><span class="hs-identifier hs-type">lookupDFsEnv</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.Env.html#DFastStringEnv"><span class="hs-identifier hs-type">DFastStringEnv</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805346"><span class="hs-identifier hs-type">a</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="#local-6989586621680805346"><span class="hs-identifier hs-type">a</span></a></span></span><span>
</span><span id="line-100"></span><span id="lookupDFsEnv"><span class="annot"><span class="annottext">lookupDFsEnv :: forall a. DFastStringEnv a -&gt; FastString -&gt; Maybe a
</span><a href="GHC.Data.FastString.Env.html#lookupDFsEnv"><span class="hs-identifier hs-var hs-var">lookupDFsEnv</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">UniqDFM FastString a -&gt; FastString -&gt; Maybe a
forall key elt.
Uniquable key =&gt;
UniqDFM key elt -&gt; key -&gt; Maybe elt
</span><a href="GHC.Types.Unique.DFM.html#lookupUDFM"><span class="hs-identifier hs-var">lookupUDFM</span></a></span><span>
</span><span id="line-101"></span></pre></body></html>